package com.wechat.shopping.mall.bean.po;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class WechatShoppingGoodsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WechatShoppingGoodsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("goods_id =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("goods_id <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("goods_id >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_id >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("goods_id <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_id <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("goods_id in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("goods_id not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_id between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_id not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsCategoriesIdIsNull() {
            addCriterion("goods_categories_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsCategoriesIdIsNotNull() {
            addCriterion("goods_categories_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsCategoriesIdEqualTo(Integer value) {
            addCriterion("goods_categories_id =", value, "goodsCategoriesId");
            return (Criteria) this;
        }

        public Criteria andGoodsCategoriesIdNotEqualTo(Integer value) {
            addCriterion("goods_categories_id <>", value, "goodsCategoriesId");
            return (Criteria) this;
        }

        public Criteria andGoodsCategoriesIdGreaterThan(Integer value) {
            addCriterion("goods_categories_id >", value, "goodsCategoriesId");
            return (Criteria) this;
        }

        public Criteria andGoodsCategoriesIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_categories_id >=", value, "goodsCategoriesId");
            return (Criteria) this;
        }

        public Criteria andGoodsCategoriesIdLessThan(Integer value) {
            addCriterion("goods_categories_id <", value, "goodsCategoriesId");
            return (Criteria) this;
        }

        public Criteria andGoodsCategoriesIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_categories_id <=", value, "goodsCategoriesId");
            return (Criteria) this;
        }

        public Criteria andGoodsCategoriesIdIn(List<Integer> values) {
            addCriterion("goods_categories_id in", values, "goodsCategoriesId");
            return (Criteria) this;
        }

        public Criteria andGoodsCategoriesIdNotIn(List<Integer> values) {
            addCriterion("goods_categories_id not in", values, "goodsCategoriesId");
            return (Criteria) this;
        }

        public Criteria andGoodsCategoriesIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_categories_id between", value1, value2, "goodsCategoriesId");
            return (Criteria) this;
        }

        public Criteria andGoodsCategoriesIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_categories_id not between", value1, value2, "goodsCategoriesId");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNull() {
            addCriterion("goods_name is null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNotNull() {
            addCriterion("goods_name is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameEqualTo(String value) {
            addCriterion("goods_name =", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotEqualTo(String value) {
            addCriterion("goods_name <>", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThan(String value) {
            addCriterion("goods_name >", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThanOrEqualTo(String value) {
            addCriterion("goods_name >=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThan(String value) {
            addCriterion("goods_name <", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThanOrEqualTo(String value) {
            addCriterion("goods_name <=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLike(String value) {
            addCriterion("goods_name like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotLike(String value) {
            addCriterion("goods_name not like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIn(List<String> values) {
            addCriterion("goods_name in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotIn(List<String> values) {
            addCriterion("goods_name not in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameBetween(String value1, String value2) {
            addCriterion("goods_name between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotBetween(String value1, String value2) {
            addCriterion("goods_name not between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathIsNull() {
            addCriterion("goods_describe_path is null");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathIsNotNull() {
            addCriterion("goods_describe_path is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathEqualTo(String value) {
            addCriterion("goods_describe_path =", value, "goodsDescribePath");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathNotEqualTo(String value) {
            addCriterion("goods_describe_path <>", value, "goodsDescribePath");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathGreaterThan(String value) {
            addCriterion("goods_describe_path >", value, "goodsDescribePath");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathGreaterThanOrEqualTo(String value) {
            addCriterion("goods_describe_path >=", value, "goodsDescribePath");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathLessThan(String value) {
            addCriterion("goods_describe_path <", value, "goodsDescribePath");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathLessThanOrEqualTo(String value) {
            addCriterion("goods_describe_path <=", value, "goodsDescribePath");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathLike(String value) {
            addCriterion("goods_describe_path like", value, "goodsDescribePath");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathNotLike(String value) {
            addCriterion("goods_describe_path not like", value, "goodsDescribePath");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathIn(List<String> values) {
            addCriterion("goods_describe_path in", values, "goodsDescribePath");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathNotIn(List<String> values) {
            addCriterion("goods_describe_path not in", values, "goodsDescribePath");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathBetween(String value1, String value2) {
            addCriterion("goods_describe_path between", value1, value2, "goodsDescribePath");
            return (Criteria) this;
        }

        public Criteria andGoodsDescribePathNotBetween(String value1, String value2) {
            addCriterion("goods_describe_path not between", value1, value2, "goodsDescribePath");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceIsNull() {
            addCriterion("goods_price is null");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceIsNotNull() {
            addCriterion("goods_price is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceEqualTo(BigDecimal value) {
            addCriterion("goods_price =", value, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceNotEqualTo(BigDecimal value) {
            addCriterion("goods_price <>", value, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceGreaterThan(BigDecimal value) {
            addCriterion("goods_price >", value, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("goods_price >=", value, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceLessThan(BigDecimal value) {
            addCriterion("goods_price <", value, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("goods_price <=", value, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceIn(List<BigDecimal> values) {
            addCriterion("goods_price in", values, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceNotIn(List<BigDecimal> values) {
            addCriterion("goods_price not in", values, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("goods_price between", value1, value2, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("goods_price not between", value1, value2, "goodsPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscountPriceIsNull() {
            addCriterion("goods_discount_price is null");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscountPriceIsNotNull() {
            addCriterion("goods_discount_price is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscountPriceEqualTo(BigDecimal value) {
            addCriterion("goods_discount_price =", value, "goodsDiscountPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscountPriceNotEqualTo(BigDecimal value) {
            addCriterion("goods_discount_price <>", value, "goodsDiscountPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscountPriceGreaterThan(BigDecimal value) {
            addCriterion("goods_discount_price >", value, "goodsDiscountPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscountPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("goods_discount_price >=", value, "goodsDiscountPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscountPriceLessThan(BigDecimal value) {
            addCriterion("goods_discount_price <", value, "goodsDiscountPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscountPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("goods_discount_price <=", value, "goodsDiscountPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscountPriceIn(List<BigDecimal> values) {
            addCriterion("goods_discount_price in", values, "goodsDiscountPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscountPriceNotIn(List<BigDecimal> values) {
            addCriterion("goods_discount_price not in", values, "goodsDiscountPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscountPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("goods_discount_price between", value1, value2, "goodsDiscountPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscountPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("goods_discount_price not between", value1, value2, "goodsDiscountPrice");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterIsNull() {
            addCriterion("goods_parameter is null");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterIsNotNull() {
            addCriterion("goods_parameter is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterEqualTo(String value) {
            addCriterion("goods_parameter =", value, "goodsParameter");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterNotEqualTo(String value) {
            addCriterion("goods_parameter <>", value, "goodsParameter");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterGreaterThan(String value) {
            addCriterion("goods_parameter >", value, "goodsParameter");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterGreaterThanOrEqualTo(String value) {
            addCriterion("goods_parameter >=", value, "goodsParameter");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterLessThan(String value) {
            addCriterion("goods_parameter <", value, "goodsParameter");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterLessThanOrEqualTo(String value) {
            addCriterion("goods_parameter <=", value, "goodsParameter");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterLike(String value) {
            addCriterion("goods_parameter like", value, "goodsParameter");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterNotLike(String value) {
            addCriterion("goods_parameter not like", value, "goodsParameter");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterIn(List<String> values) {
            addCriterion("goods_parameter in", values, "goodsParameter");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterNotIn(List<String> values) {
            addCriterion("goods_parameter not in", values, "goodsParameter");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterBetween(String value1, String value2) {
            addCriterion("goods_parameter between", value1, value2, "goodsParameter");
            return (Criteria) this;
        }

        public Criteria andGoodsParameterNotBetween(String value1, String value2) {
            addCriterion("goods_parameter not between", value1, value2, "goodsParameter");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}